import 'package:boss/ui/widget/alert/alert.dart';
import 'package:flutter/material.dart';

Future deleteCommodityAlert(BuildContext context, {ValueChanged<BuildContext> onConfirm}) {
  return showAlert(
    context,
    content: '删除菜品将对菜单、\r\n 优惠、套餐产生影响！',
    confirmText: '删除',
    onConfirm: onConfirm,
    onCancel: (context) {
      Navigator.pop(context);
    },
  );
}
